#ifndef RECOGPRE_H
#define RECOGPRE_H

#include "struct.h"
#include "global.h"
#include "imageTool.h"

//struct RecogPre{
//public:

//	ImageTool* im;
//public:
	int recogpre_Modify_Image1(int row,int col,int *Matrix_info,int Color,float BWTHRESH,float scale);
	int recogpre_Modify_Image2(int *row,int *col,int color);
	void recogpre_LightRemedy(int row,int col,float *PLATE_INFO,int Color,float BWTHRESH);
//private:
	//Modify_Image1
	int recogpre_GetPlateDownBounder(int **Gray,int row,int col,float BWTHRESH,float scale);
	int recogpre_GetPlateUpBounder(int **Gray,int row,int col,float BWTHRESH,float scale);
	
	//GetPlateDownBounder
	int recogpre_GetPlateLowerBounder(int **BW,int row,int col);
	int recogpre_IsBorderClear(int **gray_in,float thresh,int up,int down,int left,int right,int th,float th1,float th2);
//};

#endif
